package com.base.service.CZB.Impl;

import com.base.mapper.czbmapper.GasOrderMapper;
import com.base.po.czb_sdk.GasOrder;
import com.base.po.czb_sdk.GasOrderExample;
import com.base.service.CZB.GasOrderService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("GasOrderService")
public class GasOrderServiceImpl implements GasOrderService {
    @Autowired
    GasOrderMapper gasOrgderMapper;

    @Override
    public int countByExample(GasOrderExample example) {
        return gasOrgderMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(GasOrderExample example) {
        return gasOrgderMapper.deleteByExample(example);
    }

    @Override
    public int insert(GasOrder record) {
        return gasOrgderMapper.insert(record);
    }

    @Override
    public int insertSelective(GasOrder record) {
        return gasOrgderMapper.insertSelective(record);
    }

    @Override
    public List<GasOrder> selectByExample(GasOrderExample example) {
        return gasOrgderMapper.selectByExample(example);
    }

    @Override
    public List<GasOrder> selectByUserId(Page page, GasOrder record) {
        return gasOrgderMapper.selectByUserId(page, record);
    }

    @Override
    public GasOrder selectByPrimaryKey(String id) {
        return gasOrgderMapper.selectByPrimaryKey(id);
    }

    @Override
    public GasOrder selectByOrderSn(String orderSn) {
        return gasOrgderMapper.selectByOrderSn(orderSn);
    }

    @Override
    public int updateByExampleSelective(GasOrder record, GasOrderExample example) {
        return gasOrgderMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(GasOrder record, GasOrderExample example) {
        return gasOrgderMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(GasOrder record) {
        return gasOrgderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int countByUserId(String userId) {
        return gasOrgderMapper.countByUserId(userId);
    }

    @Override
    public Integer countAllGasOrder(String userId, String czborderid, String czbordersn, String gasid, String paystatus, String createTime1,String createTime2) {
        return gasOrgderMapper.countAllGasOrder(userId, czborderid, czbordersn, gasid, paystatus, createTime1,createTime2);
    }

    @Override
    public List<GasOrder> selectAllGasOrder(String userId, String czborderid, String czbordersn, String gasid, String paystatus, String createTime1,String createTime2, Page page) {
        return gasOrgderMapper.selectAllGasOrder(userId, czborderid, czbordersn, gasid, paystatus, createTime1,createTime2, page);
    }
}
